package com.pqtest.api.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class PqCsTestItemEntity {
    //id, pid, type, body, analysis, answer_display_type, score, pq_cs_test_library_id, pq_test_point_category_id,
    // ordering, created_time, updated_time, state, answer_data, tab_category_id, pq_cs_test_resource_id, pq_cs_test_resource_body
    @JsonProperty("item_id")
    private String id;
    @JsonIgnore
    private int pid;
    @JsonProperty("type")
    private String type;
    @JsonProperty("body")
    private String body;
    @JsonProperty("analysis")
    private String analysis;
    @JsonIgnore
    private String answer_display_type;
    @JsonProperty("score")
    private String score;
    @JsonProperty("library_id")
    private String pq_cs_test_library_id;
    @JsonIgnore
    private int pq_test_point_category_id;

    //@JsonProperty("point_cate")
    @JsonIgnore
    private TestPointCategoryEntity point_cate;
    @JsonProperty("ordering")
    private String ordering;
   // @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonIgnore
    private Date created_time;
    //@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonIgnore
    private Date updated_time;
    @JsonIgnore
    private int state;
    @JsonProperty("answer_data")
    private String answer_data;
    @JsonIgnore
    private int tab_category_id;
    @JsonProperty("resource_id")
    private String pq_cs_test_resource_id;
    @JsonProperty("resource_body")
    private String pq_cs_test_resource_body;
    @JsonProperty("is_collected")
    private String is_collected = "1";
    @JsonProperty("is_answer_right")
    private String is_answer_right = "0";
    @JsonProperty("is_answered")
    private String is_answered = "1";
    @JsonProperty("answer_ids")
    private String answerIds;
}
